package tjresearch.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

@Service("testService")	
public class TestService {
	@Autowired
	private StringRedisTemplate stringRedisTemplate;
	
	public String test(){
		long length = stringRedisTemplate.opsForList().size("gfp");
		System.out.println("size="+length);
		String allValue = stringRedisTemplate.opsForList().rightPop("gfp");
		
		return allValue;
	}

}
